package cn.btks.resultintegration.rule.service.impl;

import cn.btks.resultintegration.rule.pojo.EcologyArea;
import cn.btks.resultintegration.rule.repository.EcologyAreaRepository;
import cn.btks.resultintegration.rule.service.EcologyAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author lijun
 * @Date 2021/2/19 10:47
 */
@Service
public class EcologyAreaServiceImpl implements EcologyAreaService {

    @Autowired
    EcologyAreaRepository ecologyAreaRepository;

    @Override
    public List<EcologyArea> findAllEcologyArea() {
        return ecologyAreaRepository.findAll();
    }

    @Override
    public List<EcologyArea> findAllByCounty(String county) {
        return ecologyAreaRepository.findAllByCounty(county);
    }
}
